package com.tyros.resource;

import com.tyros.resource.listener.event.ApplicationEnvironmentPreparedEventListener;
import com.tyros.resource.listener.event.ApplicationPreparedEventListener;
import com.tyros.resource.listener.event.ApplicationReadyEventListener;
import com.tyros.resource.listener.event.ApplicationStartedEventListener;
import com.tyros.resource.listener.event.ApplicationStartingEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author zhangshuaiyin
 * @date 2022-2-19 21:18:29
 */
@SpringBootApplication(scanBasePackages = "com.tyros")
public class TyrosResourceApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(TyrosResourceApplication.class);
        springApplication.addListeners(
                new ApplicationEnvironmentPreparedEventListener(),
                new ApplicationPreparedEventListener(),
                new ApplicationStartingEventListener(),
                new ApplicationReadyEventListener(),
                new ApplicationStartedEventListener());
        springApplication.run(args);
    }

}
